var http = require('http')

var server = http.createServer()
server.on('request', function (request, response) {
	console.log('method', request.method);
	console.log('url', request.url);
	console.log('httpVersion', request.httpVersion);
	//console.log('headers', request.headers['user-agent']);
	console.log('cookie', request.headers['cookie']);

	request.on("data",(data)=>{
        console.log(11, data);
    });

	response.end('hello')
})

server.listen(8001, function () {});